import request from '@/utils/request'

// 查询课表列表
export function listCourseLesson(query) {
  return request({
    url: '/course/courseLesson/list',
    method: 'get',
    params: query
  })
}

// 查询课表详细
export function getCourseLesson(lessonId) {
  return request({
    url: '/course/courseLesson/' + lessonId,
    method: 'get'
  })
}

// 新增课表
export function addCourseLesson(data) {
  return request({
    url: '/course/courseLesson',
    method: 'post',
    data: data
  })
}

// 修改课表
export function updateCourseLesson(data) {
  return request({
    url: '/course/courseLesson',
    method: 'put',
    data: data
  })
}

// 删除课表
export function delCourseLesson(lessonId) {
  return request({
    url: '/course/courseLesson/' + lessonId,
    method: 'delete'
  })
}
